package smarthouse.ejb;

import javax.ejb.Remote;

import smarthouse.dto.ElectronicDTO;
/**
 * 
 * @author Sergiu
 *
 */
@Remote
public interface ElectronicDAORemote {

	/**
	 * Get from DB and electronic given an Id
	 */
	ElectronicDTO getElectronicbyId(int id);

	/**
	 * Insert electronic
	 */
	boolean addElectronic(ElectronicDTO user);

	/**
	 * update electronic component
	 */
	boolean updateElectronic(ElectronicDTO user);

	/**
	 * remove electronic component
	 */
	boolean removeElectronic(int id);

	/**
	 * power down all electronic devices
	 */
	void houseShutdown();

}
